<?php
/**
 * @author 	 	 faithsmine@gmail.com
 * @copyright		 www
 * @version		 1.0
 * @name 		 view.html.php
 * @todo 		 查看详细页面显示
 * @final 		 2009-12-10
 */
!defined("IN_YCTOOL") && exit();
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<TITLE>Manage</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<style type="text/css">
 {
	WORD-WRAP: break-word; outline: none
}
BODY {
	BACKGROUND: #fff; TEXT-ALIGN: center;MARGIN: 0px;
	PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px;
	FONT: 12px "Lucida Grande", Verdana, Lucida, Helvetica, Arial, "??", sans-serif; COLOR: #555;
}
span{
    color:black;
}
</style>
</HEAD>
<BODY>

<TABLE cellSpacing=20 cellPadding=20 height="100%" width="100%">
    <TR>
      <TD valign="top">

<?php
foreach ($typearray as $key => $value)
{
    if($type == $key) {$typename = $value;}
}

?>

<?php
if($operation == 'news')
{
    
    ?>

        <h2><?php echo $typename;?>信息</h2>

<hr style="width:100%;height:1px;color:#EFF669;">
    <span><?php echo $typename;?>标题:</span> <?php echo $rs['ntitle']; ?><br /><br />

    <span><?php echo $typename;?>内容: <br /></span><pre><?php echo $rs['ncontent']; ?></pre><br /> 
 

<?php

}
if ($operation == 'products')
{
?>
   <h2><?php echo $typename;?>信息</h2>
<hr style="width:100%;height:1px;color:#EFF669;">
            
    <span><?php echo $typename;?>名称:</span> <?php echo $rs['pname']; ?><br /><br />

    <span><?php echo $typename;?>类别:</span> <?php echo $pcls_arrs2[$rs['pclass']]; ?><br /><br />

    <span><?php echo $typename;?>规格:</span> <?php echo $rs['pstandard']; ?><br /><br />

    <span>市场价格:</span> <?php echo $rs['pprice']; ?><br /><br />
    <span>优惠价格:</span> <?php echo $rs['poffers']; ?><br /><br />

    <span><?php echo $typename;?>形象图:</span><br/> <img src="<?php echo './'.$rs['pimage'].'.jpg'; ?>" width="500px" border=0><br /><br />
    <span><?php echo $typename;?>描述:</span> <br /><pre><?php echo $rs['pdescrip']; ?></pre><br /><br />
    <span><?php echo $typename;?>状态:</span><?php if($rs['sale'] == 1){ echo '上架';} else{ echo '下架'; } ?> <br />
 
<?php
}
 
if ($operation == 'user')
{
?>
   <h2>用户详细信息</h2>
<hr style="width:100%;height:1px;color:#EFF669;">
            
    <span>用户姓名:</span> <?php echo $rs['username']; ?><br /><br />

    <span>用户角色:</span> <?php echo $roles_arr[$rs['roles']]; ?><br /><br />

    <span>用户性别:</span> <?php if ($rs['sex'] == 1) {echo '男';} else {echo '女';} ?><br /><br />
    <span>用户邮箱:</span> <?php echo $rs['email']; ?><br /><br />

    <span>联系电话:</span> <?php echo $rs['tel']; ?><br /><br />
    <span>联系地址:</span> <?php echo $rs['address']; ?><br /><br />
    <span>注册时间:</span> <?php echo $rs['regtime']; ?><br /><br />

    <span>登录次数:</span> <?php echo $rs['logincounts']; ?><br /><br />
    <span>上次登录:</span> <?php echo $rs['neartime']; ?><br /><br />
     
 
<?php
}
?>
<hr style="width:100%;height:1px;color:#EFF669;">
	   </TD>
    </TR>
</TABLE>
</body>
</html>
